export default function (props, moduleId, record, index, status) {
    const checkedRows = props.editTable.getCheckedRows(moduleId);
    console.log('checkedRows',checkedRows)
    if (checkedRows.length >= 1) {
        // props.button.setButtonDisabled(['more'], false);
        // const record = checkedRows[0].data.values;
        // if (record.src_type.value === '0') {
        //     if (record.billstatus.value === '0') {
        //         props.button.setButtonDisabled(['approve_group'], true);
        //         props.button.setButtonDisabled(['edit', 'delete'], false);
        //     } else if (record.billstatus.value === '1') {
        //         props.button.setButtonDisabled(['unapprove'], true);
        //         props.button.setButtonDisabled(['edit', 'delete', 'approve_group', 'approve'], false);
        //     } else if (record.billstatus.value === '3') {
        //         props.button.setButtonDisabled(['edit', 'delete', 'approve'], true);
        //         props.button.setButtonDisabled(['approve_group', 'unapprove'], false);
        //     }
        // } else {
        //     props.button.setButtonDisabled(['edit', 'delete', 'approve_group'], true);
        // }
        // props.button.setButtonDisabled(['copy_table_inner', 'export_table_innter'], false);
        // props.button.setButtonDisabled([], true);
        // if( tableStatus === 'browse'){
        //     props.button.setButtonDisabled(['enable', 'disable', 'delete'], false);
        // }
        props.button.setButtonDisabled(['enable', 'disable', 'delete'], false);
    } else {
        props.button.setButtonDisabled(['enable', 'disable', 'delete'], true);
        // props.button.setButtonDisabled(['link'], true);
        // props.button.setButtonDisabled(['print'], false);
        // props.button.setButtonDisabled(['export'], false);
    }
}
